<!DOCTYPE html>
<html>
<!-- Created by GNU Texinfo 7.1, https://www.gnu.org/software/texinfo/ -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!-- Copyright © 1988-2023 Free Software Foundation, Inc.

Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.3 or
any later version published by the Free Software Foundation; with the
Invariant Sections being "Funding Free Software", the Front-Cover
Texts being (a) (see below), and with the Back-Cover Texts being (b)
(see below).  A copy of the license is included in the section entitled
"GNU Free Documentation License".

(a) The FSF's Front-Cover Text is:

A GNU Manual

(b) The FSF's Back-Cover Text is:

You have freedom to copy and modify this GNU Manual, like GNU
     software.  Copies published by the Free Software Foundation raise
     funds for GNU development. -->
<title>Current structure hierarchy (GNU Compiler Collection (GCC) Internals)</title>

<meta name="description" content="Current structure hierarchy (GNU Compiler Collection (GCC) Internals)">
<meta name="keywords" content="Current structure hierarchy (GNU Compiler Collection (GCC) Internals)">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="makeinfo">
<meta name="viewport" content="width=device-width,initial-scale=1">

<link href="index.html" rel="start" title="Top">
<link href="Option-Index.html" rel="index" title="Option Index">
<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
<link href="Internal-structure.html" rel="up" title="Internal structure">
<link href="Adding-new-DECL-node-types.html" rel="next" title="Adding new DECL node types">
<style type="text/css">
<!--
a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
span:hover a.copiable-link {visibility: visible}
-->
</style>


</head>

<body lang="en">
<div class="subsubsection-level-extent" id="Current-structure-hierarchy">
<div class="nav-panel">
<p>
Next: <a href="Adding-new-DECL-node-types.html" accesskey="n" rel="next">Adding new DECL node types</a>, Up: <a href="Internal-structure.html" accesskey="u" rel="up">Internal structure</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Option-Index.html" title="Index" rel="index">Index</a>]</p>
</div>
<hr>
<h4 class="subsubsection" id="Current-structure-hierarchy-1"><span>11.4.2.1 Current structure hierarchy<a class="copiable-link" href="#Current-structure-hierarchy-1"> &para;</a></span></h4>

<dl class="table">
<dt><code class="code">struct tree_decl_minimal</code></dt>
<dd><p>This is the minimal structure to inherit from in order for common
<code class="code">DECL</code> macros to work.  The fields it contains are a unique ID,
source location, context, and name.
</p>
</dd>
<dt><code class="code">struct tree_decl_common</code></dt>
<dd><p>This structure inherits from <code class="code">struct tree_decl_minimal</code>.  It
contains fields that most <code class="code">DECL</code> nodes need, such as a field to
store alignment, machine mode, size, and attributes.
</p>
</dd>
<dt><code class="code">struct tree_field_decl</code></dt>
<dd><p>This structure inherits from <code class="code">struct tree_decl_common</code>.  It is
used to represent <code class="code">FIELD_DECL</code>.
</p>
</dd>
<dt><code class="code">struct tree_label_decl</code></dt>
<dd><p>This structure inherits from <code class="code">struct tree_decl_common</code>.  It is
used to represent <code class="code">LABEL_DECL</code>.
</p>
</dd>
<dt><code class="code">struct tree_translation_unit_decl</code></dt>
<dd><p>This structure inherits from <code class="code">struct tree_decl_common</code>.  It is
used to represent <code class="code">TRANSLATION_UNIT_DECL</code>.
</p>
</dd>
<dt><code class="code">struct tree_decl_with_rtl</code></dt>
<dd><p>This structure inherits from <code class="code">struct tree_decl_common</code>.  It
contains a field to store the low-level RTL associated with a
<code class="code">DECL</code> node.
</p>
</dd>
<dt><code class="code">struct tree_result_decl</code></dt>
<dd><p>This structure inherits from <code class="code">struct tree_decl_with_rtl</code>.  It is
used to represent <code class="code">RESULT_DECL</code>.
</p>
</dd>
<dt><code class="code">struct tree_const_decl</code></dt>
<dd><p>This structure inherits from <code class="code">struct tree_decl_with_rtl</code>.  It is
used to represent <code class="code">CONST_DECL</code>.
</p>
</dd>
<dt><code class="code">struct tree_parm_decl</code></dt>
<dd><p>This structure inherits from <code class="code">struct tree_decl_with_rtl</code>.  It is
used to represent <code class="code">PARM_DECL</code>.
</p>
</dd>
<dt><code class="code">struct tree_decl_with_vis</code></dt>
<dd><p>This structure inherits from <code class="code">struct tree_decl_with_rtl</code>.  It
contains fields necessary to store visibility information, as well as
a section name and assembler name.
</p>
</dd>
<dt><code class="code">struct tree_var_decl</code></dt>
<dd><p>This structure inherits from <code class="code">struct tree_decl_with_vis</code>.  It is
used to represent <code class="code">VAR_DECL</code>.
</p>
</dd>
<dt><code class="code">struct tree_function_decl</code></dt>
<dd><p>This structure inherits from <code class="code">struct tree_decl_with_vis</code>.  It is
used to represent <code class="code">FUNCTION_DECL</code>.
</p>
</dd>
</dl>
</div>
<hr>
<div class="nav-panel">
<p>
Next: <a href="Adding-new-DECL-node-types.html">Adding new DECL node types</a>, Up: <a href="Internal-structure.html">Internal structure</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Option-Index.html" title="Index" rel="index">Index</a>]</p>
</div>



</body>
</html>
